<template>
	<view class="s-nomore-class s-loadmore-none">
		<view :class="[isDot?'s-nomore-dot':'s-nomore']">
			<view :style="{backgroundColor:backgroundColor}" :class="[isDot?'s-dot-text':'s-nomore-text',sClass?sClass:'']">{{isDot?dotText:text}}</view>
		</view>
	</view>
</template>

<script>
	export default {
		name: "sNomore",
		props: {
			//当前页面背景颜色
			backgroundColor: {
				type: String,
				default: "#fafafa"
			},
			//是否以圆点代替 "没有更多了"
			isDot: {
				type: Boolean,
				default: false
			},
			//isDot为false时生效
			text: {
				type: String,
				default: "没有更多了"
			},
			sClass: {
				type: String,
				default: ""
			}
		},
		data() {
			return {
				dotText: "●"
			};
		}
	}
</script>
<style lang="scss" scoped>
@import 's-nomore.scss';
</style>

